package com.gite.nouette.admin.implementation.model.command;

import com.gite.nouette.admin.contract.integrator.assembler.IAssemblerModule;
import com.gite.nouette.admin.contract.model.ICommand;
import com.gite.nouette.admin.contract.model.command.ICommandCreateModule;
import com.gite.nouette.admin.implementation.model.AbstractCommand;

public class CommandCreateModuleImpl extends AbstractCommand implements
		ICommandCreateModule {
	private IAssemblerModule assembler;

	@Override
	public IAssemblerModule getAssembler() {
		return this.assembler;
	}

	@Override
	public void setAssembler(IAssemblerModule assembler) {
		this.assembler = assembler;
	}

	@Override
	public void run() {
		getAssembler().run();
	}

	@Override
	public void update(ICommand observable) {
		if (!observable.isActive()) {
			active();
		}
	}

}
